<include file="Public/header" />
<include file="Public/nav" />
<div class="row">
    <div class="col-xs-12" style="text-align: center; padding-top:10px;">
        <div class="btn-group btn-group-justified" role="group" aria-label="Justified button group">
            <a href="{:U('View/index');}" class="btn btn-default"  role="button">商品浏览</a>
            <a href="{:U('List/index');}" class="btn btn-default"   role="button">排行榜</a>
            <a href="{:U('Search/index');}" class="btn btn-default" id="myactivc" role="button">搜索</a>
        </div>
    </div>
</div>
<form action="{:U('Search/search')}" method="post">
    <div class="row" style="padding-top:10px; width: 99%">
        <div class="col-xs-6" style="padding-right:inherit; text-align:center;">
            <select class="form-control" name="school_id">
                <option value="0">全部学校</option>
                <volist id="vo" name="school">
                    <option value="{$vo.id}">{$vo.school_name}</option>
                </volist>
            </select>
        </div>
        <div class="col-xs-6" style="margin-right: inherit; padding-left: 0.3em; padding-right: inherit">
            <select class="form-control" name="goods_id">
                <option value="0">全部类型</option>
                <volist name="goods_type" id="v">
                    <option value="{$v.id}">{$v.type}</option>
                </volist>
            </select>
        </div>
    </div>
    <input type="hidden" name="tag" value="0"/>
    <input type="hidden" name="seller" value="0"/>
    <div class="row" style="padding-top: 1em; padding-bottom: inherit">
        <div class="col-xs-10" style="padding-right: 0.5em;">
            <div class="form-group">
                <input type="text" class="form-control" name="content" placeholder="输入店名、卖家、姓名或者标签">
            </div>
        </div>
        <div class="col-xs-2" style="padding-left: inherit;">
            <button class="btn btn-warning">搜索</button>
        </div>
    </div>

    <div class="row" style="padding-bottom:10px;">
        <div class="col-xs-1"> </div>

        <div class="col-xs-5">
            <div class="radio">
                <label>
                    <input type="radio" name="order_id" value="0" checked>
                    综合排序
                </label>
            </div>
        </div>

        <div class="col-xs-5">
            <div class="radio">
                <label>
                    <input type="radio" name="order_id" value="1">
                    点击量排序
                </label>
            </div>
        </div>
        <div class="col-xs-1">	</div>
    </div>
</form>
<!-- 店铺展示 -->
<volist name="store" id="vo">
    <div class="row" style="margin: inherit;padding-bottom: 10px;">
        <div class="col-xs-12">
            <a href="{$vo.link}">
            <div class="row" style="background: white;padding-top: 1em;display: flex;">
                <div class="col-xs-4" style="width: 50%;margin: auto;">
                    <img src="{$vo.show_pic}" class="img-responsive" alt="Responsive image">
                </div>
                <div class="col-xs-8" style="padding-left:inherit;width: 50%;">
                    <div class="row">
                        <div class="col-xs-12" style="color: #333333"><h4>{$vo.store_name}</h4></div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12" style="color: #666666"><p>商品: <php>foreach($vo['goods_type'] as $v){echo $v['type'].'  ';}</php></p></div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12" style="color: #666666"><p>学校: {$vo['school_name']}</php></p></div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12" style="color: #666666"><p>标签: <php>foreach($vo['tags'] as $v){echo $v['tag_name'].'  ';}</php></p></div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12" style="color: #666666">卖家: {$vo.nickname}</div>
                    </div>
                </div>
            </div>
            <div class="row" style="background: white;padding-bottom: 1em;">
                <div class="col-xs-12" style="padding-top: 1em;">
                    <a href="{:U('Person/index')}?person_id={$vo.person_id}"><button class="btn btn-warning">查看卖家风采</button></a>
                </div>
            </div>
            </a>
        </div>

    </div>
</volist>
<include file="Public/footer" />